package com.hdoit.apollo.logical.inStock.mapper;


import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hdoit.apollo.logical.inStock.model.InStock;
import com.hdoit.apollo.logical.viewmodel.stock.InStockSearch;
import com.tennetcn.data.dao.base.IMapper;
import com.tennetcn.data.message.PagerModel;

/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年04月02日 11:45:12
 * @comment
 */
@Repository(value="inStockMapper")
public interface InStockMapper extends IMapper<InStock>{

	public InStock queryModelById(@Param("key") String key);

	public List<InStock> queryInStockHistoryListByKey(@Param("key") String key);

	public InStock queryModelByKey(@Param("key") String key);

	public int queryCountMPForReturn(@Param("search") InStockSearch search);

	public List<InStock> queryListMPForReturn(@Param("search") InStockSearch search,@Param("pager") PagerModel pagerModel);

	public InStock queryModelBySee(@Param("key") String key);

}
